﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Windows.Data;

namespace ESC.Designer.Resources
{
    public class WIPColorConvert : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return "Aqua";
            if (value.ToString() == "N")
            {
                //return "待料中";
                return "Aqua";

            }
            else if (value.ToString() == "I")
            {
                //return "使用中";
                return "Lime";
            }
            else if (value.ToString() == "C")
            {
                //return "維修中";
                return "Yellow";
            }
            else if (value.ToString() == "B")
            {
                //return "故障";
                return "Red";
            }
            else
            {
                //return "停用";
                return "BurlyWood";
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
    
}
